package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xiaoc.bulldozer.common.dao.PhoneLocationMapper;
import com.xiaoc.bulldozer.common.dto.PhoneLocationQueryDto;
import com.xiaoc.bulldozer.common.model.PhoneLocation;
import com.xiaoc.bulldozer.common.service.PhoneLocationService;

/**
 * PhoneLocation Service 实现类
 * 
 * @author Danfo Yam
 * 
 * @date 2018-09-10 13:17:05
 */
@Service("phoneLocationService")
public class PhoneLocationServiceImpl implements PhoneLocationService {

    @Resource
    private PhoneLocationMapper phoneLocationMapper;

    @Override
    public Integer getPhoneLocationCountByCondition(PhoneLocationQueryDto phoneLocationQueryDto) {
        return phoneLocationMapper.getPhoneLocationCountByCondition(phoneLocationQueryDto);
    }

    @Override
    public List<PhoneLocation> getPhoneLocationListByCondition(PhoneLocationQueryDto phoneLocationQueryDto) {
        return phoneLocationMapper.getPhoneLocationListByCondition(phoneLocationQueryDto);
    }
    
    @Override
    public PhoneLocation getPhoneLocationByPhoneHead(String phoneHead) {
        return phoneLocationMapper.getPhoneLocationByPhoneHead(phoneHead);
    }

    @Override
    public PhoneLocation getPhoneLocationById(Integer id) {
        return phoneLocationMapper.getPhoneLocationById(id);
    }

    @Override
    public List<PhoneLocation> getAllPhoneLocationList() {
        return phoneLocationMapper.getAllPhoneLocationList();
    }
    
    @Override
    public void save(PhoneLocation phoneLocation) {
        phoneLocationMapper.save(phoneLocation);
    }

    @Override
    public void update(PhoneLocation phoneLocation) {
        phoneLocationMapper.update(phoneLocation);
    }

    @Override
    public void deleteById(Integer id) {
        phoneLocationMapper.deleteById(id);
    }

}
